package com.ks.comment.service;

import com.ks.comment.entity.ZpzAgree;
import com.baomidou.mybatisplus.service.IService;
import com.ks.core.base.OperationContext;

import java.util.Map;

/**
 * <p>
 * 表结构公共字段 服务类
 * </p>
 *
 * @author kingdee123
 * @since 2020-12-18
 */
public interface IZpzAgreeService extends IService<ZpzAgree> {

    /**
     * 获取会员用户的点赞踩 状态
     *
     * @param operationContext
     * @param informationId
     * @param type
     * @return
     */
    int queryAgreeStatus(OperationContext operationContext, int informationId, String type);

    /**
     * 点赞点踩接口
     * @param operationContext
     * @param informationId
     * @param type
     * @param status
     * @return
     */
    int addAgree(OperationContext operationContext, int informationId, String type,int status);


    Map<String,Object> getAgreeList(int informationId, String type, int pageNo, int pageSize);
}
